package com.momo.rabbitsingleconsumer.rabbitmq.dead;

/**
 * @program: momo-cloud
 * @description: 死信队列----》配置文件
 * 之前的队列没有绑定死信队列和死信交换机 不能做更改绑定死信交互机
 * 之前创建好的邮件队列 删除掉  已经创建好的队列不能做更改  交换机也清理掉
 * @author: Jie Li
 * @create: 2019-07-27 14:58
 **/
public class DeadSingelRabbitConfig {
    //交换机名称
    public final static String EXCHANGE = "topic_order_exchange";
    //路由key
    public final static String ROUTINGKEY = "topicOrderRoutingKey.momo";
    //队列名称
    public final static String QUEUE = "topic_order_queue_1";
    //是否持久化
    public final static String DERABLE = "true";
    //消息路由规则
    public final static String TYPE = "topic";
    // 忽略声明异常
    public final static String IGNOREDECEXCEPTION = "true";
    /**
     * 绑定的路由键或模式。
     * *（星号）：可以（只能）匹配一个单词
     * #（井号）：可以匹配多个单词（或者零个）
     */
    public final static String KEY = "topicOrderRoutingKey.#";



    /**
     * 定义死信队列相关信息
     */
    public final static String deadQueueName = "dead_queue";
    public final static String deadRoutingKey = "dead_routing_key.momo";
    public final static String deadKey = "dead_routing_key.#";
    public final static String deadExchangeName = "dead_exchange";
    /**
     * 死信队列 交换机标识符
     */
    public static final String DEAD_LETTER_QUEUE_KEY = "x-dead-letter-exchange";
    /**
     * 死信队列交换机绑定键标识符
     */
    public static final String DEAD_LETTER_ROUTING_KEY = "x-dead-letter-routing-key";
}